| Conditions | 1 |
| Total Lines | 18 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | // Type definitions for bitdepth 9.0 |
||
| 2 | // Project: https://github.com/rochars/bitdepth |
||
| 3 | // Definitions by: Rafael S. Rocha <https://github.com/rochars> |
||
| 4 | // Definitions: https://github.com/rochars/bitdepth |
||
| 5 | |||
| 6 | /** |
||
| 7 | * Change the bit depth of PCM samples. |
||
| 8 | * @param {!Array|!TypedArray} samples The original samples. |
||
| 9 | * @param {string} bithDepth The original bit depth. |
||
| 10 | * @param {!TypedArray} newSamples The output array. |
||
| 11 | * @param {string} targetBitDepth The target bit depth. |
||
| 12 | * @throws {Error} If original or target bit depths are not valid. |
||
| 13 | */ |
||
| 14 | export function changeBitDepth( |
||
| 15 | samples: ArrayLike<number>, |
||
| 16 | bithDepth: string, |
||
| 17 | newSamples: ArrayLike<number>, |
||
| 18 | targetBitDepth: string): void; |
||
| 19 |